import request from '@/utils/request'

/**
 * 获取教员列表
 */
export function getTeacherList(params) {
  return request.get('/teacher/list', params)
}

/**
 * 获取教员详情
 */
export function getTeacherDetail(id) {
  return request.get(`/teacher/${id}`)
}

/**
 * 获取推荐教员
 */
export function getRecommendTeachers(limit = 10) {
  return request.get('/teacher/recommend', { limit })
}

/**
 * 获取教员评价列表
 */
export function getTeacherReviews(teacherId, params) {
  return request.get(`/teacher/${teacherId}/reviews`, params)
}

